from langchain_text_splitters import CharacterTextSplitter

text_splitter = CharacterTextSplitter(
    ".", chunk_size=20, chunk_overlap=0
)

text = "This is a sample text for demonstrating fixed-size chunking. It may break sentences."

chunks = text_splitter.split_text(text)
print(chunks)